home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
034a
/
twview82.zip
/
PART3.INC
< prev
next >
Wrap
Text File
|
1991-02-04
|
1KB
|
40 lines
procedure PartIII;
var
newcount,
count, n : integer;
line : string;
ch : char;
ScanMe : array [ sector ] of boolean;
s : sector;
begin
for s := 1 to MaxSector do { if unexplored }
ScanMe[ s ] := space.sectors[s].number=Unexplored; { we'd like it }
repeat
readln( f, line) ;
until (pos( 'sectors:', line ) > 0) or eof(f);
n := readnumber;
while (not eof(f) ) and (n>0) do
begin
ScanMe[ n ] := false; { no info }
n := ReadNumber;
end; {while}
newcount := 0;
for s := 1 to MaxSector do
if ScanMe[s] then
begin
newcount := newcount + 1;
writeln('New sector infor for ', s );
writeln( g, 'I', s);
writeln( g, 'R', s );
end;
writeln('Explored ', newcount, ' new sectors.');
write('Do you want a refresh on your ports? ');
readln( ch );
if ch in ['Y','y'] then
for n := 1 to maxSector do
if space.sectors[n].PortType <> NotAPort then
writeln( g, 'R', n );
close( g);
end; {PartIII}